package com.niuwa.p2p.service.channel;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;





import com.niuwa.p2p.core.mvc.entity.PageBeanWithTitle;
import com.niuwa.p2p.entity.channel.Corporation;
import com.niuwa.p2p.entity.user.User;
import com.niuwa.p2p.vo.channel.ChannelCustomerTitleVo;
import com.niuwa.p2p.vo.channel.ChannelCustomerVo;

public interface IChannelInfoService {
	/**
	 * 根据ID获得渠道基本信息
	 * @param channelCode
	 * @param user 
	 * @return 
	 */
	ChannelCustomerVo getChannelBasicInfo(String channelCode, User user);
	/**
	 * 禁用、恢復渠道狀態
	 * @param channelCode 渠道编号
	 * @param id 操作員ID
	 */
	void updateChannelStatus(String channelCode, Long id, String status);
	/**
	 * 分页带title查询渠道列表
	 * @param paramMap
	 * @return
	 */
	public PageBeanWithTitle<ChannelCustomerTitleVo, ChannelCustomerVo> searchIncludeTitle(
			Map<String, Object> paramMap);
	/**
	 * 更新渠道批准額度
	 * @param channelCode
	 * @param id
	 * @param approveAmount 
	 * @param remark 
	 * @param status
	 */
	void updateChannelApproveAmount(String channelCode, Long id, String remark, BigDecimal changeAmount);
	
	/**
	 * 查询所有已通过审核的渠道信息
	 * 
	 * @param channelCode
	 * @param user
	 * @return
	 */
	List<Corporation> loadChannelInfo();

}
